//用户模块的请求api
import axios from '../utils/axiosInstance.js'

//新增员工  //获取promised对象-->异步对象
export const addAdmins=(data)=>{
    return axios({
            method:"post",
            url:"admins/add",
            data
          })
}
//员工列表
export const adminsPage=(data)=>{
    return axios({
        method:"post",
        url:"admins/page",
        data
    })
}
//员工编辑
export const adminsEdit=(data)=>{
    return axios({
        method:"post",
        url:"admins/edit",
        data
    })
}
//员工删除
export const adminsDel=(data)=>{
    return axios({
        method:"delete",
        url:`admins/${data}`,
    })
}
